﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace FontManager
{
    /// <summary>
    /// custom texture2D is used instead of regular Texture2D since I want to store more information specific for each image.
    /// Each image of this type represents a character object and is drawed in the preview xna window.
    /// </summary>
    public class CustomTexture2D
    {
        public Texture2D Texture2d { get; set; }
        public float X { get; set; }
        public float Y { get; set; }
        public string HexName { get; set; }
        public string Uri { get; set; }
        public Vector2 Position
        {
            get { return new Vector2(X, Y); }
            set
            {
                X = value.X;
                Y = value.Y;
            }
        }
        public Vector2 Anchor { get; set; }
    }
}
